from Products.Archetypes.public import DisplayList

PROJECTNAME = "apkn.resource"

ADD_PERMISSIONS = {
    "Resource Folder" : "APKN: Add Resource Folder",
    "Resource"        : "APKN: Add Resource",
}


RESOURCELANGUAGES = DisplayList((
    ('Arabic', 'Arabic'),     
    ('English', 'English'), 
    ('French', 'French'),     
    ('Kiswahili', 'Kiswahili'),
    ('Portuguese', 'Portuguese'),     
    ('Spanish', 'Spanish'),
    ))    
    

RESOURCETYPES = DisplayList((
    ('00_Parliament', 'Parliament'),
    ('01_State', 'State'),     
    ('02_Government', 'Government'),    
    ('021_Justice/Law Enforcement', 'Justice/Law Enforcement'),     
    ('03_State Departments/Corporations', 'State Departments/Corporations'),    
    ('04_State Regulatory Bodies', 'State Regulatory Bodies'),     
    ('05_Political Parties', 'Political Parties'),     
    ('06_Unions/Professional Bodies', 'Unions/Professional Bodies'), 
    ('07_Country Profiles', 'Country Profiles'),         
    ('08_Directory of Online Resources', 'Directory of Online Resources'),
    ('09_Latest News and Articles', 'Latest News and Articles'),
    ('10_Sectoral Data', 'Sectoral Data'),                  
    ('11_Books and Manuals', 'Books and Manuals'), 
    ('12_Stakeholder Organisations', 'Stakeholder Organisations'),          
    ('13_Legislative Draftings', 'Legislative Drafting'),     
    ))    

   
RESOURCESUBJECTS = DisplayList((
    ('Not applicable', 'Not applicable'),
    ('01_Head', 'President/Head of State/Government'),  
    ('02_Deputy', 'Vice President/Deputy Head of State/Government'),          
    ('03_Agriculture', 'Agriculture'),
    ('04_Telecommunications/Data Infrastructure', 'Telecommunications/Data Infrastructure'),     
    ('05_Defence/Internal Security', 'Defence/Internal Security'),
    ('06_Education', 'Education'),     
    ('07_Energies/Renewable energies', 'Energies/Renewable energies'),  
    ('08_Environment', 'Environment'),        
    ('09_Finance/Budget/Audit', 'Finance/Budget/Audit'),     
    ('10_Foreign Affairs', 'Foreign Affairs'),    
    ('11_Health', 'Health'),    
    ('12_Human Rights/Discrimination', 'Human Rights/Discrimination'),    
    ('13_Infrastructure', 'Infrastructure'),   
    ('14_Labour', 'Labour'),       
    ('15_Law/Justice', 'Law/Justice'),       
    ('16_Planning/Economic Activities', 'Planning/Economic Activities'),       
    ('17_Public Service', 'Public Service'),       
    ('18_Research and Innovation', 'Research and Innovation'),       
    ('19_Sport/Recreation/Culture', 'Sport/Recreation/Culture'),    
    ('20_Welfare', 'Welfare'), 
    ('21_Women/Marginalized Groups', 'Women/Marginalized Groups'),           
    ('22_Standards', 'Standards'),       
    ('23_Statistics/Census', 'Statistics/Census'),                      
    ))  

EXCLUDE_SUBJECTS_DISPLAY = ['Not applicable']    
                           
RESOURCECOUNTRIES = DisplayList((
    ('world', 'World'),
    ('africa', 'Africa'),
    ('eastern africa', 'Eastern Africa'),
    ('central-africa', 'Central Africa'),
    ('northern-africa', 'Northern Africa'),
    ('southern-africa', 'Southern Africa'),
    ('western-africa', 'Western Africa'),                    
    ('asia', 'Asia'),    
    ('europe', 'Europe'),   
    ('european-union', 'European Union'),   
    ('eastern-europe', 'Eastern Europe'),   
    ('north-america', 'North America'),   
    ('central-america', 'Central America'),   
    ('south-america', 'South America'),   
    ('oceania', 'Oceania'), 
    ('', '------------------------------'),  
    ('algeria', 'Algeria'),        
    ('angola', 'Angola'),
    ('benin', 'Benin'),
    ('botswana', 'Botswana'),
    ('burkina-faso', 'Burkina Faso'),
    ('burundi', 'Burundi'),
    ('cameroon', 'Cameroon'),
    ('central-african-republic', 'Central African Republic'),
    ('cape-verde', 'Cape Verde'),    
    ('chad', 'Chad'),
    ('comoros', 'Comoros'),    
    ('congo', 'Congo'),
    ("cote-d'ivoire", "Cote D'Ivoire"),
    ('democratic-republic-of-the-congo', 'Democratic Republic of the Congo'),    
    ('djibouti', 'Djibouti'),
    ('egypt', 'Egypt'),
    ('equatorial-guinea', 'Equatorial Guinea'),                   
    ('eritrea', 'Eritrea'),
    ('ethiopia', 'Ethiopia'),
    ('gabon', 'Gabon'),
    ('gambia', 'Gambia'),
    ('ghana', 'Ghana'),
    ('guinea', 'Guinea'),
    ('guinea-bissau', 'Guinea-Bissau'),
    ('kenya', 'Kenya'),
    ('lesotho', 'Lesotho'),
    ('liberia', 'Liberia'),
    ('libya', 'Libya'),
    ('madagascar', 'Madagascar'),
    ('mali', 'Mali'),               
    ('malawi', 'Malawi'),
    ('mauritius', 'Mauritius'),
    ('mauritania', 'Mauritania'),
    ('morocco', 'Morocco'),    
    ('mozambique', 'Mozambique'),
    ('namibia', 'Namibia'),
    ('niger', 'Niger'),
    ('nigeria', 'Nigeria'),
    ('rwanda', 'Rwanda'),
    ('sao-tome-and-principe', 'Sao Tome and Principe'),    
    ('senegal', 'Senegal'),
    ('seychelles', 'Seychelles'),
    ('sierra-leone', 'Sierra Leone'),    
    ('somalia', 'Somalia'),
    ('south-africa', 'South Africa'),
    ('sudan', 'Sudan'),
    ('swaziland', 'Swaziland'),
    ('tanzania', 'Tanzania'),
    ('togo', 'Togo'),
    ('tunisia', 'Tunisia'),
    ('uganda', 'Uganda'),
    ('zambia', 'Zambia'),
    ('zimbabwe', 'Zimbabwe'),
))


REGIONS = {'world': '',
           'africa': '',
           'eastern-africa': '',
           'central-africa': '',
           'northern-africa': '',
           'southern-africa': '',           
           'western-africa': '',
           'asia': '',
           'europe': '',
           'european-union': '', 
           'eastern-europe': '',
           'north-america': '',
           'central-america': '',
           'south-america': '',
           'oceania': '',                                                                  
           'algeria': 'Northern Africa',
           'angola': 'Southern Africa',
           'benin': 'Western Africa',
           'botswana': 'Southern Africa',
           'burkina Faso': 'Western Africa',               
           'burundi': 'Eastern Africa',
           'kenya': 'Eastern Africa',
           'lesotho': 'Southern Africa',
           'cameroon': 'Central Africa',
           'central-african-republic': 'Central Africa',
           'cape-verde': 'Western Africa',
           'chad': 'Central Africa',
           'comoros': 'Eastern Africa',               
           'congo': 'Central Africa',
           "cote-d'ivoire": 'Western Africa',
           'democratic-republic-of-the-congo': 'Central Africa',
           'djibouti': 'Eastern Africa',
           'egypt': 'Northern Africa ',
           'equatorial-guinea': 'Central Africa',               
           'eritrea': 'Eastern Africa',
           'ethiopia': 'Eastern Africa',
           'gabon': 'Central Africa',
           'gambia': 'Western Africa',
           'ghana': 'Western Africa',
           'guinea': 'Western Africa',               
           'guinea-bissau': 'Western Africa',
           'kenya': 'Eastern Africa',
           'lesotho': 'Southern Africa',
           'liberia': 'Western Africa',
           'libya': 'Northern Africa',
           'madagascar': 'Southern AFrica',
           'mali': 'Western Africa',               
           'malawi': 'Eastern Africa',
           'mauritius': 'Eastern Africa',
           'mauritania': 'Western Africa',
           'morocco': 'Northern Africa ',
           'mozambique': 'Southern Africa',
           'namibia': 'Southern Africa',
           'niger': 'Western Africa',               
           'nigeria': 'Western Africa',
           'reunion': 'Eastern AFrica',
           'rwanda': 'Eastern Africa',
           'sao-tome-and-principe': 'Central Africa',
           'senegal': 'Western Africa',
           'seychelles': 'Eastern Africa',
           'sierra-leone': 'Western Africa',
           'somalia': 'Eastern Africa',               
           'south-africa': 'Southern Africa',
           'sudan': 'Northern Africa ',
           'swaziland': 'Southern Africa',
           'tanzania': 'Eastern Africa',
           'togo': 'Western Africa',
           'tunisia': 'Northern Africa ',                              
           'uganda': 'Eastern Africa',
           'western-sahara': 'Northern Africa',
           'zambia': 'Eastern Africa',
           'zimbabwe': 'Eastern Africa',             
           }
           
           
ECONOMICBLOCS = {'world': '',
                 'africa': '',
                 'eastern-africa': '',
                 'central-africa': '',
                 'northern-africa': '',
                 'southern-africa': '',           
                 'western-africa': '',
                 'asia': '',
                 'europe': '',
                 'european-union': '', 
                 'eastern-europe': '',
                 'north-america': '',
                 'central-america': '',
                 'south-america': '',
                 'oceania': '',  
                 'algeria': '',
                 'angola': 'SADC',
                 'benin': 'ECOWAS',
                 'botswana': 'SADC',
                 'burkina-faso': 'ECOWAS',               
                 'burundi': 'EAC',
                 'kenya': '',
                 'lesotho': '',
                 'cameroon': '',
                 'central-africa-republic': '',
                 'cape-verde': 'ECOWAS',
                 'chad': '',
                 'comoros': '',               
                 'congo': '',
                 "cote-d'ivoire": 'ECOWAS',
                 'democratic-republic-of-the-congo': '',
                 'djibouti': '',
                 'egypt': 'COMESA',
                 'equatorial-guinea': 'SADC',               
                 'eritrea': '',
                 'ethiopia': '',
                 'gabon': '',
                 'gambia': 'ECOWAS',
                 'ghana': 'ECOWAS',
                 'guinea': '',
                 'guinea-bissau': 'ECOWAS',
                 'kenya': 'EAC',
                 'lesotho': 'SADC',
                 'liberia': 'ECOWAS',
                 'libya': 'COMESA',
                 'madagascar': 'SADC',
                 'mali': 'ECOWAS',
                 'malawi': 'SADC',
                 'mauritius': 'SADC',
                 'mauritania': 'ECOWAS',
                 'morocco': '',
                 'mozambique': 'SADC',
                 'namibia': 'SADC',
                 'niger': '',               
                 'nigeria': 'ECOWAS',               
                 'rwanda': 'EAC',
                 'sao-tome-and-principe': '',
                 'senegal': 'ECOWAS',
                 'seychelles': '',
                 'sierra-leone': 'ECOWAS',
                 'somalia': '',               
                 'south-africa': 'SADC',
                 'sudan': 'IGAD',
                 'swaziland': 'SADC',
                 'tanzania': 'EAC, SADC',
                 'togo': 'ECOWAS',
                 'tunisia': '',
                 'uganda': 'EAC',
                 'western-sahara': '',
                 'zambia': 'SADC',
                 'zimbabwe': 'SADC',                   
           }
           

slave_fields = (
    # Controls the vocab of region
    {'name': 'region',
     'action': 'value',
     'vocab_method': 'getRegionVocab',
     'control_param': 'master',
    },
    {'name': 'economicbloc',
     'action': 'value',
     'vocab_method': 'getEconomicblocVocab',
     'control_param': 'master',
    },
)    
    

